package com.cskaoyan.service;

import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.po.MarketRole;
import com.cskaoyan.bean.vo.GetPermissionsRoleVO;
import com.cskaoyan.bean.vo.MarketRoleVO;

import java.util.List;

/**
 * @Auther: Yang Yi-zhou
 * @Date: 2022/9/6 20:35
 * @Description:
 */
public interface RoleService {

    CommonData<MarketRoleVO> optionsRole();

    CommonData<MarketRole> listRole(Integer page, Integer limit, String sort, String order);

    MarketRole createRole(MarketRole marketRole);

    boolean isDuplicateName(String name);

    boolean updateRole(MarketRole marketRole);

    boolean deleteRole(MarketRole marketRole);

    GetPermissionsRoleVO getPermissionsRole(Integer roleId);

    void postPermissionsRole(Integer roleId, List<String> permissions);
}
